package com.logbook;
import java.io.PrintStream;
import java.io.File;
import java.io.FileOutputStream;

public class LogBook {
    public static void init(){
        File file=new File("logbook.txt");
        try{
            if(!file.exists()){
                file.createNewFile();
            }
            System.setOut(new PrintStream(new FileOutputStream(file)));
        }catch(Exception e){
            //do nothing
        }
    }
}
